/*- coding = utf-8 -*-
@Time : 2023/4/9 9:50
@Author : CSDN 沉默小管
@File : index.ts
@web  : golangblog.blog.csdn.net
@Software: WebStorm
*/

import {App} from "vue"
import virtualList from "@/package/virtualList/index"

const comps = [virtualList]

const install = (app:App)=>{
    comps.map((component:any)=>{
        app.component(component.__name as string,component)
    })
}

let windowObj = window as any
/* 支持使用标签的方式引入 */
if (typeof windowObj !== 'undefined' && windowObj.Vue) {
    const vm = windowObj.Vue.createApp({})
    install(vm)
}

export default install